package com.jindy.module.oaServiceApproval.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jindy.module.oaServiceApproval.mapper.SyRequireDetailMapper;
import com.jindy.module.oaServiceApproval.domain.SyRequireDetail;
import com.jindy.module.oaServiceApproval.service.ISyRequireDetailService;

/**
 * 物资及服务需求明细Service业务层处理
 * 
 * @author jindy
 * @date 2023-06-02
 */
@Service
public class SyRequireDetailServiceImpl implements ISyRequireDetailService 
{
    @Autowired
    private SyRequireDetailMapper syRequireDetailMapper;

    /**
     * 查询物资及服务需求明细
     * 
     * @param id 物资及服务需求明细主键
     * @return 物资及服务需求明细
     */
    @Override
    public SyRequireDetail selectSyRequireDetailById(Long id)
    {
        return syRequireDetailMapper.selectSyRequireDetailById(id);
    }

    /**
     * 查询物资及服务需求明细列表
     * 
     * @param syRequireDetail 物资及服务需求明细
     * @return 物资及服务需求明细
     */
    @Override
    public List<SyRequireDetail> selectSyRequireDetailList(SyRequireDetail syRequireDetail)
    {
        return syRequireDetailMapper.selectSyRequireDetailList(syRequireDetail);
    }

    /**
     * 新增物资及服务需求明细
     * 
     * @param syRequireDetail 物资及服务需求明细
     * @return 结果
     */
    @Override
    public int insertSyRequireDetail(SyRequireDetail syRequireDetail)
    {
        return syRequireDetailMapper.insertSyRequireDetail(syRequireDetail);
    }

    /**
     * 修改物资及服务需求明细
     * 
     * @param syRequireDetail 物资及服务需求明细
     * @return 结果
     */
    @Override
    public int updateSyRequireDetail(SyRequireDetail syRequireDetail)
    {
        return syRequireDetailMapper.updateSyRequireDetail(syRequireDetail);
    }

    /**
     * 批量删除物资及服务需求明细
     * 
     * @param ids 需要删除的物资及服务需求明细主键
     * @return 结果
     */
    @Override
    public int deleteSyRequireDetailByIds(Long[] ids)
    {
        return syRequireDetailMapper.deleteSyRequireDetailByIds(ids);
    }

    /**
     * 删除物资及服务需求明细信息
     * 
     * @param id 物资及服务需求明细主键
     * @return 结果
     */
    @Override
    public int deleteSyRequireDetailById(Long id)
    {
        return syRequireDetailMapper.deleteSyRequireDetailById(id);
    }
}
